<template>
    <div>
        <goodListSonVue :dataList="list" :goodsList="goodsList" :flag="flag" :current="current"></goodListSonVue>
    </div>
</template>

<script>
import goodListSonVue from './goodListSon.vue'

export default {
    name:"goodListFather",
    data(){
        return {
            list:[],
            goodsList:[]
        }
    },
    components:{
        goodListSonVue
    },
    mounted(){
        this.$http({
            url:`http://118.178.238.19:3001/api/banner/list`,
            method:"get"
        }).then(res=>{
            this.list = res.data.data
        }),
        this.$http({
            url:`http://118.178.238.19:3001/api/pro/search/`,
            method:"get",
            params:{
                count:1,
                limitNum:25
            }
        }).then(res=>{
            this.goodsList = res.data.data
        })
    },
    props:["flag","current"]
}   
</script>

<style lang="scss" scoped>

</style>